package dao;



import java.util.List;

import org.junit.Before;
import org.junit.Test;

import entity.Cinema;
import entity.Movie;

public class TestMovie {

	@Before
	public void setUp() throws Exception {
	}

	@Test
	public void test() {
		MovieDao dao = new MovieDaoImpl();
		List<Movie> movieList = dao.MovieAll();
		
		for(Movie m:movieList){
			System.out.println("电影名:"+m.getName()+","+"主演:"+m.getDirector());
		}
		
		List<Cinema> cinemaList = dao.CinemaAll();
		
		for(Cinema c:cinemaList){
			System.out.println("影院名:"+c.getName()+","+"电话:"+c.getPhone());
		}
	}

}
